/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_subsectorCriteria extends AbstractORMCriteria {
	public final IntegerExpression su_id_subsector;
	public final StringExpression su_nombre;
	
	public Tan_subsectorCriteria(Criteria criteria) {
		super(criteria);
		su_id_subsector = new IntegerExpression("su_id_subsector", this);
		su_nombre = new StringExpression("su_nombre", this);
	}
	
	public Tan_subsectorCriteria(PersistentSession session) {
		this(session.createCriteria(Tan_subsector.class));
	}
	
	public Tan_subsectorCriteria() throws PersistentException {
		this(orm.AnotacionespowaPersistentManager.instance().getSession());
	}
	
	public Tan_cursoCriteria createCu_id_cursoCriteria() {
		return new Tan_cursoCriteria(createCriteria("cu_id_curso"));
	}
	
	public Tan_anotacionCriteria createTan_anotacionCriteria() {
		return new Tan_anotacionCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_subsector uniqueTan_subsector() {
		return (Tan_subsector) super.uniqueResult();
	}
	
	public Tan_subsector[] listTan_subsector() {
		java.util.List list = super.list();
		return (Tan_subsector[]) list.toArray(new Tan_subsector[list.size()]);
	}
}

